<?php
class Module extends AppModel {

	var $name = 'Module';
    var $order = 'position ASC';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasMany = array(
		'Menu' => array(
			'className' => 'Menu',
			'foreignKey' => 'module_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => 'label',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

	var $hasAndBelongsToMany = array(
		'Usergroup' => array(
			'className' => 'Usergroup',
			'joinTable' => 'usergroup_modules',
			'foreignKey' => 'module_id',
			'associationForeignKey' => 'usergroup_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);
}
?>
